package ThreadHome;

public class Test_04 {

	public static void main(String[] args) {


		Plus p=new Plus();
		
		Thread a1=null;
		for(int i=1;i<=91;i+=10)
		{
			a1=new Thread(new Thread_04(p,i,i+9));	
			a1.start();
		}
		try {
			Thread.sleep(2000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println(p.getSum());
		
	    

	}

}
